local skill = fk.CreateSkill{
  name = "tuntian__use_card",
}

Fk:loadTranslationTable{ ["tuntian__use_card"] = "使用" }

skill:addEffect("viewas", {
  expand_pile = function (self, player)
    return self.pile or {}
  end,
  card_filter = function (self, player, to_select, selected)
    return #selected == 0 and table.contains(self.cardIds or {}, to_select)
  end,
  view_as = function(self, player, cards)
    if #cards == 1 then
      return Fk:getCardById(cards[1])
    end
  end,
})

return skill
